package com.wkbb.common.enums;

public enum SpecialAttendTypeEnum {

    ATTEND_ALL(1,"全部"),

    HOLIDAY_BEFORE(2,"节假日前一天晚上不计考勤"),

    HOLIDAY_AFTER(3,"节假日结束后当天晚上不计考勤");

    private SpecialAttendTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (SpecialAttendTypeEnum attendType : SpecialAttendTypeEnum.values()) {
            if (attendType.getValue().intValue()==value) {
                return attendType.getDesc();
            }
        }
        return null;
    }
}
